package com.ruoyi.combo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combo.mapper.ComboMapper;
import com.ruoyi.combo.domain.Combo;
import com.ruoyi.combo.service.IComboService;

/**
 * 充值套餐Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class ComboServiceImpl implements IComboService 
{
    @Autowired
    private ComboMapper comboMapper;

    /**
     * 查询充值套餐
     *
     * @param comboId 充值套餐主键
     * @return 充值套餐
     */
    @Override
    public Combo selectComboByComboId(String comboId)
    {
        return comboMapper.selectComboByComboId(comboId);
    }

    /**
     * 查询充值套餐列表
     *
     * @param combo 充值套餐
     * @return 充值套餐
     */
    @Override
    public List<Combo> selectComboList(Combo combo)
    {
        return comboMapper.selectComboList(combo);
    }

    /**
     * 新增充值套餐
     *
     * @param combo 充值套餐
     * @return 结果
     */
    @Override
    public int insertCombo(Combo combo)
    {
        return comboMapper.insertCombo(combo);
    }

    /**
     * 修改充值套餐
     *
     * @param combo 充值套餐
     * @return 结果
     */
    @Override
    public int updateCombo(Combo combo)
    {
        return comboMapper.updateCombo(combo);
    }

    /**
     * 批量删除充值套餐
     *
     * @param comboIds 需要删除的充值套餐主键
     * @return 结果
     */
    @Override
    public int deleteComboByComboIds(String[] comboIds)
    {
        return comboMapper.deleteComboByComboIds(comboIds);
    }

    /**
     * 删除充值套餐信息
     *
     * @param comboId 充值套餐主键
     * @return 结果
     */
    @Override
    public int deleteComboByComboId(String comboId)
    {
        return comboMapper.deleteComboByComboId(comboId);
    }
}
